/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;

import IA.InformationAggregator;

/**
 *
 * @author Pop
 */
public class CmdRemoveComment extends Command {
    String indexStr;
    public CmdRemoveComment(InformationAggregator IA, String indexStr){
        super(IA);
        this.indexStr = indexStr;
    }

    @Override
    public Object execute() {
        Integer index = Integer.parseInt(indexStr);
        ia.getCommentCollection().removeComment(index);
        return null;
    }
    
}
